﻿using System;
using System.IO;

namespace EmbeddedSensorCloud.Log
{
    public sealed class FileLog : LogBase
    {
        private readonly string filePath;

        public FileLog(string filePath)
        {
            this.filePath = filePath;
        }

        public override void Write(string message)
        {
            try
            {
                File.AppendAllText(filePath, message);
            }
            catch { }
        }
    }
}
